package com.ruoyi.fztz.kthzb.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.fztz.clxhtb.domain.Clxhtb;
import com.ruoyi.fztz.kthzb.service.IKthzService;
import com.ruoyi.fztz.kthzb.vo.KthzVo;
import com.ruoyi.fztz.zzzecx.service.IZzzeService;
import com.ruoyi.fztz.zzzecx.vo.ZzzeVo;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/**
 * 课题汇总Controller
 *
 * @author huacai
 * @date 2024-11-27
 */
@RestController
@RequestMapping("/fztz/kthz")
public class KthzController extends BaseController {
    @Resource
    private IKthzService kthzService;

    /**
     * 查询课题汇总表列表
     * @param kthzVo 课题汇总Vo
     * @return 课题汇总表列表
     */
    @GetMapping("/kthzb")
    public TableDataInfo selectKthz(KthzVo kthzVo) {
        startPage();
        List<KthzVo> list = kthzService.selectKthz(kthzVo);
        return getDataTable(list);
    }

}
